import request from '../utils/request'

/**
 * 获取权限列表菜单
 * @returns promise
 */
export const getRightsMenus = () => request('menus')

/**
 * 获取所有权限
 * @param {string} type list or tree
 * @returns
 */
export const getAllRights = type => request(`rights/${type}`)
